package com.yix.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DBMapper {
    @Select("SELECT EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name = #{tableName})")
    boolean isTableExists(@Param("tableName") String tableName);

    void createTable(@Param("createTableSql") String createTableSql);

    void dropTable(@Param("tableName") String tableName);
}
